package com.wuliuqi.yaohuoubb;

import android.widget.EditText;

/**
 * Created by wzg on 18-12-2.
 */

public class StringGeneration {
    // TODO: 18-12-2 文字链接ubb
    public static String gn_Url(EditText edit1,EditText edit2){
        return "[url="+edit1.getText()+"]"+edit2.getText()+"[/url]";
    }
    // TODO: 18-12-2 图片ubb
    public static String gn_ImgUrl(EditText edit1){
        return "[img]"+edit1.getText()+"[/img]";
    }
    // TODO: 18-12-2 图片ubb2
    public static String gn_ImgUrl2(EditText edit1,EditText edit2){
        return "[img="+edit1.getText()+"]"+edit2.getText()+"[/img]";
    }
    // TODO: 18-12-2 音乐ubb
    public static String gn_Music(EditText edit1){
        return "[audio=X]"+edit1.getText()+"[/audio]";
    }
    // TODO: 18-12-2 视频ubb
    public static String gn_Movie(EditText edit1){
        return "[movie=100%*100%]"+edit1.getText()+"[/movie]";
    }
    // TODO: 18-12-2 拨打电话
    public static String gn_Call(EditText edit1){
        return "[call]"+edit1.getText()+"[/call]";
    }
    // TODO: 18-12-2 发送短信
    public static String gn_Sms(EditText edit1,EditText edit2,EditText edit3){
        return "[url=sms:"+edit1.getText()+"?body="+edit2.getText()+"]"+edit3.getText()+"[/url]";
    }
    // TODO: 18-12-2 斜体文字
    public static String gn_I(EditText edit1){
        return "[i]"+edit1.getText()+"[/i]";
    }
    // TODO: 18-12-2 删除线文字
    public static String gn_Strike(EditText edit1){
        return "[strike]"+edit1.getText()+"[/strike]";
    }
    // TODO: 18-12-2 彩色字体
    public static String gn_TextColor(EditText edit1,EditText edit2){
        return "[forecolor="+edit1.getText()+"]"+edit2.getText()+"[/forecolor]";
    }
    // TODO: 18-12-2 字体下划线
    public static String gn_U(EditText edit1){
        return "[u]"+edit1.getText()+"[/u]";
    }
    // TODO: 18-12-2 字体加粗
    public static String gn_B(EditText edit1){
        return "[b]"+edit1.getText()+"[/b]";
    }
    // TODO: 18-12-2 倒计时天数
    public static String gn_codo(EditText edit1){
        return "[codo]"+edit1.getText()+"[/codo]";
    }
    // TODO: 18-12-2 天气预报
    public static String gn_Tq(EditText edit1){
        return "[tq=X]"+edit1.getText()+"[/tq]";
    }
}
